package excollection;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Vector;

/**
 * @author: knowno
 * @create: 2025-09-15 10:56
 * @Version 1.0
 **/
public class TestCollection {
    public static void main(String[] args) {

        //Collection接口的 实现
        //父接口  子类对象 =>底层是数组
        //private static final int DEFAULT_CAPACITY = 10;
        List arraylist1 = new ArrayList();

        //父接口引用指向子类对象 =>底层是链表
        List linkedList1 = new LinkedList();

        //Vector =>底层是数组 =>很多方法加入了一个 synchronized关键字修饰,线程同步
        List vector1 = new Vector();
    }
}
